package mission009;

/**
 * @author Admin
 * @create 2019/10/18
 * @since 1.0.0
 */
public class Food {

    private String name;
    private int price;
    private String eat;

    public Food(String name, int yuan) {
        this.name=name;
        this.price=yuan;
    }

    public Food(){

    }

    public String getName() {
        return name;
    }

    public int getPrice() {
        return price;
    }

    public void setName(String name) {
        this.name =name;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String ToString(){
        return getName()+getPrice();
    }

}
